package com.itheima.dao.impl;

import com.itheima.dao.TeacherDao;
import com.itheima.pojo.Student;
import com.itheima.pojo.Teacher;

public class TeacherImpl implements TeacherDao {
    private Teacher tc;
    private Student stu;

    public void setTc(Teacher tc) {
        this.tc = tc;
    }

    public TeacherImpl(Student stu) {
        this.stu = stu;
    }

    @Override
    public void findAll() {
        System.out.println(tc.getId() + " " + tc.getName());
        System.out.println(stu.getName() + " " + stu.getId());
    }
}
